package com.lxk.pojo;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

public class TemExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public TemExample() {
        oredCriteria = new ArrayList<>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andTemIdIsNull() {
            addCriterion("tem_id is null");
            return (Criteria) this;
        }

        public Criteria andTemIdIsNotNull() {
            addCriterion("tem_id is not null");
            return (Criteria) this;
        }

        public Criteria andTemIdEqualTo(Integer value) {
            addCriterion("tem_id =", value, "temId");
            return (Criteria) this;
        }

        public Criteria andTemIdNotEqualTo(Integer value) {
            addCriterion("tem_id <>", value, "temId");
            return (Criteria) this;
        }

        public Criteria andTemIdGreaterThan(Integer value) {
            addCriterion("tem_id >", value, "temId");
            return (Criteria) this;
        }

        public Criteria andTemIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("tem_id >=", value, "temId");
            return (Criteria) this;
        }

        public Criteria andTemIdLessThan(Integer value) {
            addCriterion("tem_id <", value, "temId");
            return (Criteria) this;
        }

        public Criteria andTemIdLessThanOrEqualTo(Integer value) {
            addCriterion("tem_id <=", value, "temId");
            return (Criteria) this;
        }

        public Criteria andTemIdIn(List<Integer> values) {
            addCriterion("tem_id in", values, "temId");
            return (Criteria) this;
        }

        public Criteria andTemIdNotIn(List<Integer> values) {
            addCriterion("tem_id not in", values, "temId");
            return (Criteria) this;
        }

        public Criteria andTemIdBetween(Integer value1, Integer value2) {
            addCriterion("tem_id between", value1, value2, "temId");
            return (Criteria) this;
        }

        public Criteria andTemIdNotBetween(Integer value1, Integer value2) {
            addCriterion("tem_id not between", value1, value2, "temId");
            return (Criteria) this;
        }

        public Criteria andTemNameIsNull() {
            addCriterion("tem_name is null");
            return (Criteria) this;
        }

        public Criteria andTemNameIsNotNull() {
            addCriterion("tem_name is not null");
            return (Criteria) this;
        }

        public Criteria andTemNameEqualTo(String value) {
            addCriterion("tem_name =", value, "temName");
            return (Criteria) this;
        }

        public Criteria andTemNameNotEqualTo(String value) {
            addCriterion("tem_name <>", value, "temName");
            return (Criteria) this;
        }

        public Criteria andTemNameGreaterThan(String value) {
            addCriterion("tem_name >", value, "temName");
            return (Criteria) this;
        }

        public Criteria andTemNameGreaterThanOrEqualTo(String value) {
            addCriterion("tem_name >=", value, "temName");
            return (Criteria) this;
        }

        public Criteria andTemNameLessThan(String value) {
            addCriterion("tem_name <", value, "temName");
            return (Criteria) this;
        }

        public Criteria andTemNameLessThanOrEqualTo(String value) {
            addCriterion("tem_name <=", value, "temName");
            return (Criteria) this;
        }

        public Criteria andTemNameLike(String value) {
            addCriterion("tem_name like", value, "temName");
            return (Criteria) this;
        }

        public Criteria andTemNameNotLike(String value) {
            addCriterion("tem_name not like", value, "temName");
            return (Criteria) this;
        }

        public Criteria andTemNameIn(List<String> values) {
            addCriterion("tem_name in", values, "temName");
            return (Criteria) this;
        }

        public Criteria andTemNameNotIn(List<String> values) {
            addCriterion("tem_name not in", values, "temName");
            return (Criteria) this;
        }

        public Criteria andTemNameBetween(String value1, String value2) {
            addCriterion("tem_name between", value1, value2, "temName");
            return (Criteria) this;
        }

        public Criteria andTemNameNotBetween(String value1, String value2) {
            addCriterion("tem_name not between", value1, value2, "temName");
            return (Criteria) this;
        }

        public Criteria andTemTypeIsNull() {
            addCriterion("tem_type is null");
            return (Criteria) this;
        }

        public Criteria andTemTypeIsNotNull() {
            addCriterion("tem_type is not null");
            return (Criteria) this;
        }

        public Criteria andTemTypeEqualTo(Integer value) {
            addCriterion("tem_type =", value, "temType");
            return (Criteria) this;
        }

        public Criteria andTemTypeNotEqualTo(Integer value) {
            addCriterion("tem_type <>", value, "temType");
            return (Criteria) this;
        }

        public Criteria andTemTypeGreaterThan(Integer value) {
            addCriterion("tem_type >", value, "temType");
            return (Criteria) this;
        }

        public Criteria andTemTypeGreaterThanOrEqualTo(Integer value) {
            addCriterion("tem_type >=", value, "temType");
            return (Criteria) this;
        }

        public Criteria andTemTypeLessThan(Integer value) {
            addCriterion("tem_type <", value, "temType");
            return (Criteria) this;
        }

        public Criteria andTemTypeLessThanOrEqualTo(Integer value) {
            addCriterion("tem_type <=", value, "temType");
            return (Criteria) this;
        }

        public Criteria andTemTypeIn(List<Integer> values) {
            addCriterion("tem_type in", values, "temType");
            return (Criteria) this;
        }

        public Criteria andTemTypeNotIn(List<Integer> values) {
            addCriterion("tem_type not in", values, "temType");
            return (Criteria) this;
        }

        public Criteria andTemTypeBetween(Integer value1, Integer value2) {
            addCriterion("tem_type between", value1, value2, "temType");
            return (Criteria) this;
        }

        public Criteria andTemTypeNotBetween(Integer value1, Integer value2) {
            addCriterion("tem_type not between", value1, value2, "temType");
            return (Criteria) this;
        }

        public Criteria andTemNumberIsNull() {
            addCriterion("tem_number is null");
            return (Criteria) this;
        }

        public Criteria andTemNumberIsNotNull() {
            addCriterion("tem_number is not null");
            return (Criteria) this;
        }

        public Criteria andTemNumberEqualTo(BigDecimal value) {
            addCriterion("tem_number =", value, "temNumber");
            return (Criteria) this;
        }

        public Criteria andTemNumberNotEqualTo(BigDecimal value) {
            addCriterion("tem_number <>", value, "temNumber");
            return (Criteria) this;
        }

        public Criteria andTemNumberGreaterThan(BigDecimal value) {
            addCriterion("tem_number >", value, "temNumber");
            return (Criteria) this;
        }

        public Criteria andTemNumberGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("tem_number >=", value, "temNumber");
            return (Criteria) this;
        }

        public Criteria andTemNumberLessThan(BigDecimal value) {
            addCriterion("tem_number <", value, "temNumber");
            return (Criteria) this;
        }

        public Criteria andTemNumberLessThanOrEqualTo(BigDecimal value) {
            addCriterion("tem_number <=", value, "temNumber");
            return (Criteria) this;
        }

        public Criteria andTemNumberIn(List<BigDecimal> values) {
            addCriterion("tem_number in", values, "temNumber");
            return (Criteria) this;
        }

        public Criteria andTemNumberNotIn(List<BigDecimal> values) {
            addCriterion("tem_number not in", values, "temNumber");
            return (Criteria) this;
        }

        public Criteria andTemNumberBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("tem_number between", value1, value2, "temNumber");
            return (Criteria) this;
        }

        public Criteria andTemNumberNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("tem_number not between", value1, value2, "temNumber");
            return (Criteria) this;
        }

        public Criteria andTemRangeIsNull() {
            addCriterion("tem_range is null");
            return (Criteria) this;
        }

        public Criteria andTemRangeIsNotNull() {
            addCriterion("tem_range is not null");
            return (Criteria) this;
        }

        public Criteria andTemRangeEqualTo(Integer value) {
            addCriterion("tem_range =", value, "temRange");
            return (Criteria) this;
        }

        public Criteria andTemRangeNotEqualTo(Integer value) {
            addCriterion("tem_range <>", value, "temRange");
            return (Criteria) this;
        }

        public Criteria andTemRangeGreaterThan(Integer value) {
            addCriterion("tem_range >", value, "temRange");
            return (Criteria) this;
        }

        public Criteria andTemRangeGreaterThanOrEqualTo(Integer value) {
            addCriterion("tem_range >=", value, "temRange");
            return (Criteria) this;
        }

        public Criteria andTemRangeLessThan(Integer value) {
            addCriterion("tem_range <", value, "temRange");
            return (Criteria) this;
        }

        public Criteria andTemRangeLessThanOrEqualTo(Integer value) {
            addCriterion("tem_range <=", value, "temRange");
            return (Criteria) this;
        }

        public Criteria andTemRangeIn(List<Integer> values) {
            addCriterion("tem_range in", values, "temRange");
            return (Criteria) this;
        }

        public Criteria andTemRangeNotIn(List<Integer> values) {
            addCriterion("tem_range not in", values, "temRange");
            return (Criteria) this;
        }

        public Criteria andTemRangeBetween(Integer value1, Integer value2) {
            addCriterion("tem_range between", value1, value2, "temRange");
            return (Criteria) this;
        }

        public Criteria andTemRangeNotBetween(Integer value1, Integer value2) {
            addCriterion("tem_range not between", value1, value2, "temRange");
            return (Criteria) this;
        }

        public Criteria andTemBottomPriceIsNull() {
            addCriterion("tem_bottom_price is null");
            return (Criteria) this;
        }

        public Criteria andTemBottomPriceIsNotNull() {
            addCriterion("tem_bottom_price is not null");
            return (Criteria) this;
        }

        public Criteria andTemBottomPriceEqualTo(BigDecimal value) {
            addCriterion("tem_bottom_price =", value, "temBottomPrice");
            return (Criteria) this;
        }

        public Criteria andTemBottomPriceNotEqualTo(BigDecimal value) {
            addCriterion("tem_bottom_price <>", value, "temBottomPrice");
            return (Criteria) this;
        }

        public Criteria andTemBottomPriceGreaterThan(BigDecimal value) {
            addCriterion("tem_bottom_price >", value, "temBottomPrice");
            return (Criteria) this;
        }

        public Criteria andTemBottomPriceGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("tem_bottom_price >=", value, "temBottomPrice");
            return (Criteria) this;
        }

        public Criteria andTemBottomPriceLessThan(BigDecimal value) {
            addCriterion("tem_bottom_price <", value, "temBottomPrice");
            return (Criteria) this;
        }

        public Criteria andTemBottomPriceLessThanOrEqualTo(BigDecimal value) {
            addCriterion("tem_bottom_price <=", value, "temBottomPrice");
            return (Criteria) this;
        }

        public Criteria andTemBottomPriceIn(List<BigDecimal> values) {
            addCriterion("tem_bottom_price in", values, "temBottomPrice");
            return (Criteria) this;
        }

        public Criteria andTemBottomPriceNotIn(List<BigDecimal> values) {
            addCriterion("tem_bottom_price not in", values, "temBottomPrice");
            return (Criteria) this;
        }

        public Criteria andTemBottomPriceBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("tem_bottom_price between", value1, value2, "temBottomPrice");
            return (Criteria) this;
        }

        public Criteria andTemBottomPriceNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("tem_bottom_price not between", value1, value2, "temBottomPrice");
            return (Criteria) this;
        }

        public Criteria andTemTimespanIsNull() {
            addCriterion("tem_timespan is null");
            return (Criteria) this;
        }

        public Criteria andTemTimespanIsNotNull() {
            addCriterion("tem_timespan is not null");
            return (Criteria) this;
        }

        public Criteria andTemTimespanEqualTo(Integer value) {
            addCriterion("tem_timespan =", value, "temTimespan");
            return (Criteria) this;
        }

        public Criteria andTemTimespanNotEqualTo(Integer value) {
            addCriterion("tem_timespan <>", value, "temTimespan");
            return (Criteria) this;
        }

        public Criteria andTemTimespanGreaterThan(Integer value) {
            addCriterion("tem_timespan >", value, "temTimespan");
            return (Criteria) this;
        }

        public Criteria andTemTimespanGreaterThanOrEqualTo(Integer value) {
            addCriterion("tem_timespan >=", value, "temTimespan");
            return (Criteria) this;
        }

        public Criteria andTemTimespanLessThan(Integer value) {
            addCriterion("tem_timespan <", value, "temTimespan");
            return (Criteria) this;
        }

        public Criteria andTemTimespanLessThanOrEqualTo(Integer value) {
            addCriterion("tem_timespan <=", value, "temTimespan");
            return (Criteria) this;
        }

        public Criteria andTemTimespanIn(List<Integer> values) {
            addCriterion("tem_timespan in", values, "temTimespan");
            return (Criteria) this;
        }

        public Criteria andTemTimespanNotIn(List<Integer> values) {
            addCriterion("tem_timespan not in", values, "temTimespan");
            return (Criteria) this;
        }

        public Criteria andTemTimespanBetween(Integer value1, Integer value2) {
            addCriterion("tem_timespan between", value1, value2, "temTimespan");
            return (Criteria) this;
        }

        public Criteria andTemTimespanNotBetween(Integer value1, Integer value2) {
            addCriterion("tem_timespan not between", value1, value2, "temTimespan");
            return (Criteria) this;
        }

        public Criteria andIsDeleteIsNull() {
            addCriterion("is_delete is null");
            return (Criteria) this;
        }

        public Criteria andIsDeleteIsNotNull() {
            addCriterion("is_delete is not null");
            return (Criteria) this;
        }

        public Criteria andIsDeleteEqualTo(Integer value) {
            addCriterion("is_delete =", value, "isDelete");
            return (Criteria) this;
        }

        public Criteria andIsDeleteNotEqualTo(Integer value) {
            addCriterion("is_delete <>", value, "isDelete");
            return (Criteria) this;
        }

        public Criteria andIsDeleteGreaterThan(Integer value) {
            addCriterion("is_delete >", value, "isDelete");
            return (Criteria) this;
        }

        public Criteria andIsDeleteGreaterThanOrEqualTo(Integer value) {
            addCriterion("is_delete >=", value, "isDelete");
            return (Criteria) this;
        }

        public Criteria andIsDeleteLessThan(Integer value) {
            addCriterion("is_delete <", value, "isDelete");
            return (Criteria) this;
        }

        public Criteria andIsDeleteLessThanOrEqualTo(Integer value) {
            addCriterion("is_delete <=", value, "isDelete");
            return (Criteria) this;
        }

        public Criteria andIsDeleteIn(List<Integer> values) {
            addCriterion("is_delete in", values, "isDelete");
            return (Criteria) this;
        }

        public Criteria andIsDeleteNotIn(List<Integer> values) {
            addCriterion("is_delete not in", values, "isDelete");
            return (Criteria) this;
        }

        public Criteria andIsDeleteBetween(Integer value1, Integer value2) {
            addCriterion("is_delete between", value1, value2, "isDelete");
            return (Criteria) this;
        }

        public Criteria andIsDeleteNotBetween(Integer value1, Integer value2) {
            addCriterion("is_delete not between", value1, value2, "isDelete");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {
        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}